/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.ka.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.ka.entity.ProductInstockDetail;
import com.kaaction.modules.ka.entity.Statistics;
import com.kaaction.modules.ka.dao.ProductInstockDetailDao;

/**
 * 货品入库明细Service
 * @author huanghaiming
 * @version 2017-06-21
 */
@Service
@Transactional(readOnly = true)
public class ProductInstockDetailService extends CrudService<ProductInstockDetailDao, ProductInstockDetail> {

	public ProductInstockDetail get(String id) {
		return super.get(id);
	}
	
	public List<ProductInstockDetail> findList(ProductInstockDetail productInstockDetail) {
		return super.findList(productInstockDetail);
	}
	
	public Page<ProductInstockDetail> findPage(Page<ProductInstockDetail> page, ProductInstockDetail productInstockDetail) {
		return super.findPage(page, productInstockDetail);
	}
	
	@Transactional(readOnly = false)
	public void save(ProductInstockDetail productInstockDetail) {
		super.save(productInstockDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(ProductInstockDetail productInstockDetail) {
		super.delete(productInstockDetail);
	}

	public List<ProductInstockDetail> findProductInstockDetail(ProductInstockDetail productInstockDetail) {
		return super.findList(productInstockDetail);
	}

	public Statistics selStatistics(ProductInstockDetail productInstockDetail) {
		return super.dao.selStatistics(productInstockDetail);
	}
	
}